package com.byxy.ssm.demo.service;

import java.util.List;

import com.byxy.ssm.demo.entity.User;

public interface UserService {
	
	/**
	 * 
	 * @param userName
	 * @param userPassword
	 * @return 找到的返回对象找不到的返回null
	 */
	User login(String username, String password);

	boolean reg(String username, String password, String userNick, Integer userType);

	User getUserById(Integer userId);

	List<User> findAll();

	User loginByName(String username);
	
	
}
